package com.lee;

/**
 * Created by liruopeng on 2017/12/6.
 */
public class SessionResult {
    private String srcIP;
    private int srcPort;
    private String dstIP;
    private int dstPort;
    private long startTime;
    private long endTime;
    private int recLen;
    private int sendLen;
    private String protocol;

    @Override
    public String toString() {
        return "SessionResult{" +
                "srcIP='" + srcIP + '\'' +
                ", srcPort=" + srcPort +
                ", dstIP='" + dstIP + '\'' +
                ", dstPort=" + dstPort +
                ", startTime=" + startTime +
                ", endTime=" + endTime +
                ", recLen=" + recLen +
                ", sendLen=" + sendLen +
                ", protocol='" + protocol + '\'' +
                '}';
    }

    public SessionResult(){
        this.recLen = 0;
        this.sendLen = 0;
        this.protocol = "unknow";
    }


    public int getSrcPort() {
        return srcPort;
    }

    public SessionResult setSrcPort(int srcPort) {
        this.srcPort = srcPort;
        return this;
    }

    public int getDstPort() {
        return dstPort;
    }

    public SessionResult setDstPort(int dstPort) {
        this.dstPort = dstPort;
        return this;
    }

    public String getSrcIP() {
        return srcIP;
    }

    public SessionResult setSrcIP(String srcIP) {
        this.srcIP = srcIP;
        return this;
    }

    public String getDstIP() {
        return dstIP;
    }

    public SessionResult setDstIP(String dstIP) {
        this.dstIP = dstIP;
        return this;
    }

    public long getStartTime() {
        return startTime;
    }

    public SessionResult setStartTime(long startTime) {
        this.startTime = startTime;
        return this;
    }

    public long getEndTime() {
        return endTime;
    }

    public SessionResult setEndTime(long endTime) {
        this.endTime = endTime;
        return this;
    }

    public int getRecLen() {
        return recLen;
    }

    public SessionResult setRecLen(int recLen) {
        this.recLen = recLen;
        return this;
    }

    public int getSendLen() {
        return sendLen;
    }

    public SessionResult setSendLen(int sendLen) {
        this.sendLen = sendLen;
        return this;
    }

    public String getProtocol() {
        return protocol;
    }

    public SessionResult setProtocol(String protocol) {
        this.protocol = protocol;
        return this;
    }
}
